<% title "New Employee" %>
<%= render :partial => 'breadcrumbs' %>

<% form_for(@employee) do |f| %>
  <%= f.error_messages %>
  <table class="form">
		<tr>
			<th colspan="3">Employees Information</th>
		</tr>
		<tr>
			<td width="3%">1.</td>
			<td><%= f.label :name %></td>
			<td><%= f.text_field :name,:size => 44 %></td>
		</tr>
		<tr>
			<td>2.</td>
			<td><%= f.label :employee_number %></td>
			<td><%= f.text_field :employee_number,:size => 24 %></td>
		</tr>
		<tr>
			<td>3.</td>
			<td><%= f.label :gender_id %></td>
			<td><%= collection_select(:employee,:gender_id, @genders,:id,:title,{:prompt => true}) %></td>
		</tr>
		<tr>
			<td>4.</td>
			<td><%= f.label :telephone_number %></td>
			<td><%= f.text_field :telephone_number %></td>
		</tr>
		<tr>
			<td>5.</td>
			<td><%= f.label :email %></td>
			<td><%= f.text_field :email %></td>
		</tr>
		<tr>
			<td>6.</td>
			<td><%= f.label :address %></td>
			<td><%= f.text_field :address,:size => 54 %></td>
		</tr>
		<tr>
			<td>7.</td>
			<td><%= f.label :postcode %></td>
			<td><%= f.text_field :postcode,:size => 24 %></td>
		</tr>
		<tr>
			<td>8.</td>
			<td><%= f.label :city %></td>
			<td><%= f.text_field :city,:size => 24 %></td>
		</tr>
		<tr>
			<td>9.</td>
			<td><%= f.label :department_id %></td>
			<td><%= collection_select(:employee,:department_id, @departments,:id,:title,{:prompt => true}) %></td>
		</tr>
		<tr>
			<td>10.</td>
			<td><%= f.label :position_id %></td>
			<td><%= collection_select(:employee,:position_id, @positions,:id,:title,{:prompt => true}) %></td>
		</tr>
		<tr>
			<td>11.</td>
			<td><%= f.label :level_id %></td>
			<td><%= collection_select(:employee,:level_id, @levels,:id,:title,{:prompt => true}) %></td>
		</tr>
		<tr>
			<td>12.</td>
			<td><%= f.label :attendance_working_hour_id %></td>
			<td><%= collection_select(:employee,:attendance_working_hour_id, @attendance_working_hours,:id,:title,{:prompt => true}) %></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><%= f.submit 'Create' %></td>
		</tr>
	</table>
  <p><% end %>

	<%= link_to 'Back', employees_path %></p>
  